import request from '@/utils/request'

// 查询员工职务列表
export function listEmployeerole(query) {
  return request({
    url: '/hippocampus/employeerole/list',
    method: 'get',
    params: query
  })
}

// 查询员工职务详细
export function getEmployeerole(employeeId) {
  return request({
    url: '/hippocampus/employeerole/' + employeeId,
    method: 'get'
  })
}

// 新增员工职务
export function addEmployeerole(data) {
  return request({
    url: '/hippocampus/employeerole',
    method: 'post',
    data: data
  })
}

// 修改员工职务
export function updateEmployeerole(data) {
  return request({
    url: '/hippocampus/employeerole',
    method: 'put',
    data: data
  })
}

// 删除员工职务
export function delEmployeerole(employeeId) {
  return request({
    url: '/hippocampus/employeerole/' + employeeId,
    method: 'delete'
  })
}
